home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / dpkg.postrm < prev    next >
Text File  |  2009-09-20  |  1KB  |  56 lines

  1. #!/bin/sh -e
  2. # This script can be called in the following ways:
  3. #
  4. # After the package was removed:
  5. #    <postrm> remove
  6. #
  7. # After the package was purged:
  8. #    <postrm> purge
  9. #
  10. # After the package was upgraded:
  11. #    <old-postrm> upgrade <new-version>
  12. # if that fails:
  13. #    <new-postrm> failed-upgrade <old-version>
  14. #
  15. #
  16. # After all of the packages files have been replaced:
  17. #    <postrm> disappear <overwriting-package> <version>
  18. #
  19. #
  20. # If preinst fails during install:
  21. #    <new-postrm> abort-install
  22. #
  23. # If preinst fails during upgrade of removed package:
  24. #    <new-postrm> abort-install <old-version>
  25. #
  26. # If preinst fails during upgrade:
  27. #    <new-postrm> abort-upgrade <old-version>
  28.  
  29.  
  30. # Remove log file when dpkg is purged
  31. remove_logfile() {
  32.     rm -f /var/log/dpkg.log /var/log/dpkg.log.* 2>/dev/null
  33. }
  34.  
  35.  
  36. case "$1" in
  37.     remove)
  38.     ;;
  39.  
  40.     purge)
  41.     remove_logfile
  42.     ;;
  43.  
  44.     upgrade|failed-upgrade|disappear|abort-install|abort-upgrade)
  45.     ;;
  46.  
  47.  
  48.     *)
  49.     echo "$0 called with unknown argument \`$1'" 1>&2
  50.     exit 1
  51.     ;;
  52. esac
  53.  
  54.  
  55. exit 0
  56.